import { ref, reactive } from 'vue'
// import { QUESTION_STATUS } from '@/utils/dictionary'

// 航道代码
const roadList = ref([])

export const search = reactive({
  search: [
    {
      label: '问题类型',
      type: 'select',
      key: 'channelId',
      props: {
        placeholder: '请选择巡检路线',
        options: roadList
      }
    },
    {
      label: '问题状态',
      type: 'select',
      key: 'structureType',
      props: {
        placeholder: '请选择问题状态',
        // options: QUESTION_STATUS
      }
    }
  ]
})

// 获取航道列表
// export const getRoadInfo = async function() {
//   const { data } = await getRoadInformation()
//   roadList.value = data.map(it => ({
//     ...it,
//     label: it.code,
//     value: it.id
//   }))
// }

